# Create your views here.
from  django.shortcuts import render_to_response
from models import Video

import api_test

def video(request, videoid):
    v = Video.objects.filter(id=videoid)[0]
    v.shot_set

    return render_to_response('video.html', locals())

def video_api(request, videoid):
    
    szid = str(videoid)
    print 'v = api_test.video_read(szid)'
    v = api_test.video_read(szid)
    print 'l_s = api_test.shot_list(szid)'
    s = api_test.shot_list(szid)
    return render_to_response('video_api.html', locals())